<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/* Author: Jorge Torres
 * Description: Login model class
 */
class Market_model extends CI_Model{
    function __construct(){
        parent::__construct();
    }
    
	function getby_neighborhood_id($neighborhood_id){
		$this->load->library('curl');
		$this->load->helper('webservice');
		$markets_get = $this->curl->create(create_web_service_url('market/address/neighborhood_id/'.$neighborhood_id));
		$markets = json_decode($this->curl->execute());
		return $markets;
	}
}
?>